home *** CD-ROM | disk | FTP | other *** search
/ Top 100 Games / Top 100 Games.iso / worms / WORMS.BAT next >
DOS Batch File  |  1997-11-01  |  1KB  |  52 lines

  1. @echo off
  2. cls
  3.  
  4. if x%1 == xinstall goto install
  5. if x%1 == xreins goto reins
  6. if not exist c:\ts\worms\worms.exe goto temp
  7.  
  8. :install
  9.   if exist c:\ts\worms\worms.exe goto insready
  10. :reins
  11.   if exist c:\ts\ts goto install2
  12.   md c:\ts > NUL:
  13.   echo ts > c:\ts\ts
  14.   :install2
  15.     md c:\ts\worms > NUL:
  16.     \pkunzip -od worms.zip c:\ts\worms > NUL:
  17.   :insready
  18.     c:
  19.     cd \ts\worms
  20.     worms.exe
  21.     goto einde
  22.  
  23. :temp
  24.   md c:\ts_tmp > NUL:
  25.   if not exist c:\ts_y copy \y c:\ts_y > NUL:
  26.   \pkunzip -od worms.zip c:\ts_tmp > NUL:
  27.   c:
  28.   cd \ts_tmp
  29.   worms.exe
  30.   c:
  31.   cd \
  32.   del c:\ts_tmp\data\audio\*.* < c:\ts_y > NUL:
  33.   rd c:\ts_tmp\data\audio
  34.   del c:\ts_tmp\data\hell\*.* < c:\ts_y > NUL:
  35.   rd c:\ts_tmp\data\hell
  36.   del c:\ts_tmp\data\mars\*.* < c:\ts_y > NUL:
  37.   rd c:\ts_tmp\data\mars
  38.   del c:\ts_tmp\data\pics\*.* < c:\ts_y > NUL:
  39.   rd c:\ts_tmp\data\pics
  40.   del c:\ts_tmp\data\snow\*.* < c:\ts_y > NUL:
  41.   rd c:\ts_tmp\data\snow
  42.   del c:\ts_tmp\data\*.* < c:\ts_y > NUL:
  43.   rd c:\ts_tmp\data
  44.   del c:\ts_tmp\*.* < c:\ts_y > NUL:
  45.   rd c:\ts_tmp
  46.   del c:\ts_y > NUL:
  47.   goto einde
  48.  
  49. :einde
  50.   @echo off
  51.   cls
  52.